home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 13 / MacFormat n. 13 (Spain) / Macformat 13.bin / Shareware Internet / Newton / picofermibagels-13 folder / PFB.txt next >
Encoding:
Text File  |  1996-01-01  |  4.5 KB  |  143 lines

  1. PFB.txt
  2. 1/1/96
  3.  
  4. PFB 1.3 (aka Pico, Fermi, Bagels)
  5. a number guessing game
  6.  
  7. Keywords: game, strategy, numbers, source
  8.  
  9. Dedicated to Kristina and Ellie
  10.  
  11. PFB is "postcardware"; if you like it, I ask that you send email to my kids
  12. Ellie (EllieJelly@aol.com) and Kristina (Vader42@aol.com), postcards, and/or
  13. other valuable tokens of appreciation.
  14.  
  15. PFB may be distributed freely as long as all of the files are included and
  16. unmodified.  You are free to make modifications for your own use.
  17. Copyright 1993-96, S. Weyer, All Rights Reserved Worldwide.
  18.  
  19. Contents:
  20. - PFB-13.pkg   -- Newton application
  21. - PFB.txt      -- introduction/abstract, general info, help
  22. - picoferm.nwt -- Newt source
  23. - picoferm.bit -- bitmap icon
  24.  
  25.  
  26. If you are interested in object-oriented programming, developing
  27. applications in NewtonScript and saving as packages directly on your Newton,
  28. try the "Newt" development environment.
  29.  
  30. Registered users receive a 80+ pp. manual (Acrobat or paper) and 190+ examples.
  31. Also, NewtPFB, an interactive book tutorial (like NewtATut), that describes
  32. and implements PFB step-by-step.
  33.  
  34. If you would like to build this application yourself with Newt, obtain the
  35. latest version (check my web page) of Newt and Slurpee:
  36.   http://www.netaxs.com/~weyer/newton/releases.html
  37.  
  38. Look at the information that came with Newt and
  39. build the "Hello World" application (applic0.nwt or via NewtATut).
  40.  
  41. Transfer picoferm.nwt (and picoferm.bit if you would like to have the Extras icon).
  42.  
  43. Start Newt, select the folder where you stored PFB (see 2nd line of picoferm.nwt).
  44.  
  45. Tap Expr, select :doObj('build, 'PFB), tap Eval.
  46.  
  47.  
  48. Author:
  49. Steve Weyer
  50. 17 Timber Knoll Drive
  51. Washington Crossing, PA 18977-1052
  52. Internet: weyer@netaxs.com
  53. America Online/eWorld/NewtonMail: SteveWeyer
  54. Compuserve: 74603,2051
  55.  
  56.  
  57. Revision History:
  58. -----
  59. 1.3 (1/1/96)
  60. - NOS 2.0 compatible
  61. - created with Newt Development Environment
  62. - includes Newt source
  63.  
  64. 1.2 (9/3/94)
  65. - fixed bug (when writing too few digits)
  66. - added bottom buttons to status bar
  67. - replaced About and Help with Info (help book)
  68. - misc. internal cleanup, recompilation with NTK 1.0.1
  69.  
  70. 1.1 (3/2/94)
  71. - new, non-generic icon
  72. - autoconfigures for new (smaller) MessagePad screens
  73. - changed from "freeware" to "postcardware"
  74. - minor cosmetic changes to interface and messages; code cleanup
  75. - source code available to Newt users
  76.  
  77. 1.0d2 (9/29/93)
  78. - initial public version (my first Newton program)
  79.  
  80.  
  81. Help
  82. ----
  83.  
  84. For each guess, you will see one or more of
  85. - Fermi: a correct digit placed correctly
  86. - Pico: a correct digit placed incorrectly
  87. - Bagels: no digits are correct
  88.  
  89. e.g., if <Allow Zero> is checked, <Digits>=3
  90. and the computer's number is 029
  91.   445  <4 duplicate>
  92.   4567 <not 3 digits>
  93.   376  Bagels
  94.   914  Pico
  95.   820  Fermi Pico
  96.   . . .
  97.   092  Fermi Pico Pico
  98.   029  Fermi Fermi Fermi
  99.  
  100. Notes: Unlike MasterMind, PFB does not allow duplicate digits. Although
  101. I had played versions of PFB where "Pico" and "Fermi" were reversed,
  102. the kids convinced me it was easier to remember "Fermi" by "firm".
  103.  
  104.  
  105. Additional Information
  106. -----
  107.  
  108. PFB is similar in concept and strategy to MasterMind and Jotto.  After I first
  109. saw "Pico Fermi Bagels" (PFB) as a Basic program at the Lawrence Hall of
  110. Science in Berkeley in the early '70s, I wrote several Logo versions.
  111.  
  112. Uncheck "Allow Zero" to omit zero as a possible digit.
  113.  
  114. Select "Digits" to change the number of digits (between 2-5).
  115.  
  116. Selecting either of these after you have made your first guess starts a New
  117. Game. Your last settings of these should reappear the next time you start PFB
  118. (though these don't survive Newton resets).
  119.  
  120. The guess fields expect numbers, but will ignore spaces and periods.  Doubletap
  121. for a numeric keypad. PFB  will complain about non-digits (or zero if "Allow
  122. Zero" is unchecked), the wrong number of digits, or duplicate digits.
  123.  
  124. Order of guesses doesn't matter; guesses can be recycled (may be necessary
  125. since there are only 16 guess fields -- a protoRollBrowser limit unless I add
  126. scrolling).
  127.  
  128. To balance readability and amount of information displayed, guess field changes
  129. font size [except when Landscape on NOS 2.0]:
  130. - userFont12 (Digits=2,3)
  131. - userFont10 (Digits=4)
  132. - userFont9 (Digits=5) [long line may still not quite be all visible]
  133.  
  134. Winning is indicated by "Fermi" for all digits, and an audible sound. 
  135.  
  136.  
  137. Possible Next Steps:
  138. -----
  139. - allow more guesses (via scrolling) [for now, recycle guesses]
  140. - provide feedback via the label (instead of in value field)?
  141. - autoexpanding the next guess field (but expandLine doesn't refresh properly?)
  142. - add preferences to system soup entry (doesn't seem worth the bother)
  143.